<?php

namespace app\admin\controller;

use think\Controller;

class Test extends Controller
{
    public function index(){
        return $this->fetch();
    }
    public function test(){
        $data=db('products')->select();
        return $this->fetch('test',['data'=>$data]);
    }
}
